package net.qhzw.vip.qiyu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
    * 产品码表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "repair_code")
public class RepairCode {

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /***
     * 商铺ID
     */
    @TableField(value = "shop_id")
    private Long shopId;

    /***
     * 产品规格资费配置ID
     */
    @TableField(value = "electric_veh_brand_id")
    private Long electricVehBrandId;

    /**
     * 车牌号
     */
    @TableField(value = "number_plate")
    private String numberPlate;

    /**
     * 车架号
     */
    @TableField(value = "frame_number")
    private String frameNumber;


    /**
     * 电动车编号
     */
    @TableField(value = "vehicle_number")
    private String vehicleNumber;

    /**
     * 押金
     */
    @TableField(value = "deposit")
    private BigDecimal deposit;

    /**
     * 状态 0-无效； 1-有效
     */
    @TableField(value = "status")
    private Byte status;

    /**
     * 状态 1:正常 2:故障 3:报废 4:出租
     */
    @TableField(value = "vehicle_status")
    private Byte vehicleStatus;

    /****
     * 异常信息
     */
    @TableField(value = "unusual_location")
    private String unusualLocation;

    /**
     * 发票
     */
    @TableField(value = "bill")
    private String bill;

    /**
     * 合格证
     */
    @TableField(value = "certificate")
    private String certificate;

    /**
     * 车辆所属
     */
    @TableField(value = "vehicle_belongs")
    private Long vehicleBelongs;

    /***
     * 出租人
     */
    @TableField(value = "rent_user")
    private Long rentUser;

    /**
     * 创建时间
     */
    @TableField(value = "created")
    private Date created;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private Long createBy;

    /**
     * 车辆描述
     */
    @TableField(value = "`desc`")
    private String desc;


}